package trlygjj.tanruiliyigenjinjin.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import trlygjj.tanruiliyigenjinjin.domain.EmployeeNeedsBill;
import trlygjj.tanruiliyigenjinjin.service.IEmployeeNeedsBillService;

import java.util.List;

/**
 * Created by user on 2018/7/11.
 */
@Controller
@RequestMapping("employeeNeedsBill")
public class EmployeeNeedsBillController {

    @Autowired
    private IEmployeeNeedsBillService employeeNeedsBillService;



    /**
     * 根据用人需求的id来查询明细
     * @param employeeNeedsId 用人需求的id
     * @return 封装了明细的集合
     */
    @RequestMapping("selectEmployeeNeedsBillByEmployeeNeedsId")
    @ResponseBody
    public List<EmployeeNeedsBill> selectEmployeeNeedsBillByEmployeeNeedsId(Long employeeNeedsId){
        return employeeNeedsBillService.selectEmployeeNeedsBillByEmployeeNeedsId(employeeNeedsId);
    }

}
